AC_PREREQ(2.61)

AC_INIT([gtableauparm],[0.0.97b],[o.eichner@gmail.com])

RELEASE=`date +%Y%m%d`

AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])


AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)

AC_PROG_CXX
AM_PROG_CC_STDC
AC_PROG_INSTALL

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST

# Checks for library functions.
PKG_CHECK_MODULES(GTKMM, [gtkmm-2.4 >= 2.8.0])
AC_SUBST(GTKMM_CFLAGS)
AC_SUBST(GTKMM_LIBS)

#check for tableau parm
AC_CHECK_PROG(TABLEAUPARM,[tableau-parm],[found],[not found])
if test "$TABLEAUPARM" = "not found" ; then
	AC_MSG_ERROR(Arg.. you need tableau-parm to use this app.
		     Either it's not in the PATH variable or it isn't installed. 
		     Look for that and try again. )
fi

AC_CONFIG_FILES([Makefile
                 src/Makefile])
AC_OUTPUT

